package com.example.springbootexamples.util;

public class SleepUtil {

    public static void sleep(int n){
        for(int i=0;i<n;i++){
            System.out.println(Thread.currentThread()+" sleep " +i);
            try {
                Thread.sleep(1000);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }
    }
}
